package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBootFirstApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext ca =
                SpringApplication.run(SpringBootFirstApplication.class, args);

        String[] beans = ca.getBeanDefinitionNames();
        for(String bean:beans){
            System.out.println(bean);
        }

    }
}
